package com.chunxiadong.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.ArrayList;
import java.util.List;

/**
 * @auther QiuShangcheng
 * @create 2021/6/6
 */
@Data
@NoArgsConstructor
@ToString
/*博客分类*/
public class Type {
    private Integer id;
    private String name;
    private List<Blog> blogList;//一种分类持有多个博客

    public Type(String name){
        this.name = name;
    }
    public Type(Integer id,String name){
        this.name = name;
        this.id = id;
    }
}
